<%--
  Created by IntelliJ IDEA.
  User: Dominic
  Date: 08.04.12
  Time: 20:06
  To change this template use File | Settings | File Templates.
--%>


<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <title>Forum Board</title>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'forum.css')}" type="text/css">
    <script type="text/javascript" src="${resource(dir:'js',file:'showhidearguments.js')}"></script>
</head>
<body>
<div id="forum-logo" role="banner">
    <img src="${resource(dir:"images",file:"forumlogo.png")}" alt="Forum Logo" height="100" width="200">
</div>
<div>
    <h1>Threads in  ${argument.name}</h1>


    <div class="argument-header">
        <div class="argument-name"    >${argument.name}</div>
        <div class="display-threads"><a  id="imgDiv" href="javascript:toggle('threads-container','imgDiv');">
            <img src="${resource(dir:"images",file:"show.png")}" alt="show" width="15" height="15">
        </a></div>

    </div>
    <div class="argument-subheader">
        <div class="argument-header-thread-name">Thread</div>
        <div class="argument-header-lastpost">Last Post</div>
        <div class="argument-header-status">Status</div>
    </div>
    <g:set var="counter" value="${1}" />
    <div class="threads-container" id="threads-container">

    <g:each in="${threads}" var="thread" >
        <li class="thread-li">
        <div class="thread-name"><g:link controller="thread" id="thread.id">${thread.name}</g:link></div>
        <div class="thread-lastpost">Last Post</div>
        <div class="thread-status">${thread.status}</div>
        </li>
    </g:each>

    </div>
</div>
</body>
</html>